<?php
namespace app\track\validata;
use think\Validate;
/**
 *时光相册验证类 
 */
class TimeTrackValidata extends Validate
{
	  protected $rule =   [
        'describe'  => 'require|max:200|chsDash',
        'permissions'=>'number|max:1',
        'trackregion'=>'max:200|chsDash',
         'page'=>'number',
        'limit'=>'number|max:2',
         'trackid'=>'require|number',
        'content'=>'require|max:800|chsDash',
        'year'=>'number',
        'month'=>'number'
    
    ];
    
    protected $message  =   [
        'describe.require' => '时光描述是必须的',
        'describe.max' => '时光描述超过字符限制',
        'describe.chsDash' => '时光描述含有不符合规定的字符',

       
        
        
    ];


    protected $scene = [
        'release_track' => ['describe','permissions','trackregion'], // 时光相册
        'track_list' =>['page','limit'],
        'comment_list'=>['page','limit'],
        'comment' =>['trackid','content'],//添加相册评论
        'add_points'=>['trackid'],
        'track_lists'=>['page','limit','Token','year','month']
       
    ];
}

?>